int firstUniqChar(char* s)
{
    int check[130] = { 0 };
    for (int i = 0; s[i] != '\0'; i++)
        check[s[i]]++;
    for (int i = 0; s[i] != '\0'; i++)
        if (check[s[i]] == 1)
            return i;
    return -1;
}